from tweb import controller,route

@controller
@route('/user')
class user_controller:
    @route('/login')
    def login():
        print('login request')
        return {"user": "xun", "status": "ok"}